package com.yedean.factory.support;

import com.yedean.factory.context.AbstractXmlApplicationContext;

public class ClasspathXmlApplicationContext extends AbstractXmlApplicationContext {
    
    private String[] configurations;

    public ClasspathXmlApplicationContext(String[] configurations) {
        this.configurations = configurations;
        refresh();
    }
    
    public ClasspathXmlApplicationContext(String configuration){
        this(new String[]{configuration});
    }

    @Override
    protected String[] getConfigurations() {
        return configurations;
    }
}
